package com.ruoyi.basicData.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物料管理对象 material_management
 * 
 * @author admin
 * @date 2024-06-27
 */
public class MaterialManagement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 物料id */
    private Long materialId;

    /** 产品编号 */
    @Excel(name = "产品编号",sort = 2)
    private String materialNumber;

    /** 产品名称 */
    @Excel(name = "产品名称",sort = 1)
    private String materialName;

    /** 物料类型 */
//    @Excel(name = "物料类型")
    private String materialType;

    /** 单价 */
//    @Excel(name = "重量")
    private Long weight;

    /** 单位 */
    @Excel(name = "单位",sort = 5)
    private String unit;

    /** 产品规格 */
    @Excel(name = "产品规格")
    private String guige;

    /** 创建人 */
//    @Excel(name = "创建人")
    private String createUser;


    /** 最后更新人 */
//    @Excel(name = "最后更新人")
    private String lastUpdater;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdateTime;

    /** 单位 */
//    @Excel(name = "单位")
    private String units;


    /** 数量 */
    @Excel(name = "数量",sort = 6)
    private Long quantity;

    /** 品牌 */
    @Excel(name = "品牌",sort = 4)
    private String brand;

    /** 产品型号 */
    @Excel(name = "产品型号",sort = 3)
    private String model;


    public Long getQuantity() {
        return quantity;
    }

    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public void setMaterialId(Long materialId)
    {
        this.materialId = materialId;
    }



    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getGuige() {
        return guige;
    }

    public void setGuige(String guige) {
        this.guige = guige;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }
    public void setMaterialNumber(String materialNumber) 
    {
        this.materialNumber = materialNumber;
    }

    public String getMaterialNumber() 
    {
        return materialNumber;
    }
    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }
    public void setMaterialType(String materialType) 
    {
        this.materialType = materialType;
    }

    public String getMaterialType() 
    {
        return materialType;
    }
    public void setWeight(Long weight) 
    {
        this.weight = weight;
    }

    public Long getWeight() 
    {
        return weight;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setLastUpdater(String lastUpdater) 
    {
        this.lastUpdater = lastUpdater;
    }

    public String getLastUpdater() 
    {
        return lastUpdater;
    }
    public void setLastUpdateTime(Date lastUpdateTime) 
    {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Date getLastUpdateTime() 
    {
        return lastUpdateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("materialId", getMaterialId())
            .append("materialNumber", getMaterialNumber())
            .append("materialName", getMaterialName())
            .append("materialType", getMaterialType())
            .append("weight", getWeight())
            .append("unit", getUnit())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("lastUpdater", getLastUpdater())
            .append("lastUpdateTime", getLastUpdateTime())
            .append("guige",getGuige())
                .append("model",getModel())
                .append("brand",getBrand())
                .append("remark",getRemark())
                .append("quantity",getQuantity())
            .toString();
    }
}
